package com.glela.common.dao;

import java.util.List;

import org.springframework.stereotype.Service;

import tk.mybatis.mapper.common.Mapper;

/**
 * @author liujie
 * @date 2016年3月4日
 *
 */
@Service
public interface IBaseDao<T> {
	
	public void setMapper(Mapper<T> mapper);

	T queryByKey(Object key);

    int save(T entity);

    int remove(Object key);

    int updateAll(T entity);

    int updateNotNull(T entity);

    List<T> queryByExample(Object example);
}
